//
//  UIColor+Category.h
//  YLB
//
//  Created by Zoo Chow on 14/02/2017.
//  Copyright © 2017 Zoo. All rights reserved.
//

#import <UIKit/UIKit.h>

#define UIColorFromRGB(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
                green:((float)((rgbValue & 0x00FF00) >>  8))/255.0 \
                 blue:((float)((rgbValue & 0x0000FF) >>  0))/255.0 \
                alpha:1.0]

#define UIColorFromRGBA(rgbValue, a) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
                green:((float)((rgbValue & 0x00FF00) >>  8))/255.0 \
                 blue:((float)((rgbValue & 0x0000FF) >>  0))/255.0 \
                alpha:a]

@interface UIColor (Category)
/**
 *  主色调
 */
+ (UIColor*)mainToneColor;
/**
 *  辅色调
 */
+ (UIColor*)auxiliaryColor;
/**
 *  底色
 */
+ (UIColor*)bottomColor;
/**
 *  橘色
 */
+ (UIColor*)tangerineColor;
/**
 *  牛皮纸色
 */
+ (UIColor*)KraftpaperColor;
/**
 *  宝蓝色
 */
+ (UIColor*)diamondBlueColor;
/**
 * 随机色
 */
+ (UIColor*)randomColor;

/**
 * table cell separator color

 @return color
 */
+ (UIColor*)tableSeparatorColor;

/**
 * 控件长按选中色

 @return color
 */
+ (UIColor*)selectedColor;

@end
